<style type="text/css">
<!-- 
.dj-btn {
    background-color: #E6E6E6;
    background-image: linear-gradient(to bottom, #FDFDFD, #F3F2F3);
    background-repeat: repeat-x;
    border: 1px solid #C6C6C6;
    border-radius: 2px;
    color: #333333;
    display: inline-block;
    font-family: simsun,serif;
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    padding: 0px;
    position:relative;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    width: 200px;
    text-align:left;
}

.upload_btn
{ 
	font-size: 12px;  
	padding-left: 80px;
    position: absolute;
}

-->
</style>
<#--
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> -->
<script type="text/javascript">

<#-- 
-->
	$(".js-uploadImg").die().live("click",function()
    {     
        var inputType = $(this).attr("inputType");
        $("#J_InputType").val("file");
        relId = $(this).attr("relImgId");
        //$("#J_InputFile").click();
        //$("#J_InputFile").change(function()
        $("#J_InputFile").die().live("change",function()
        {
        	//alert(1234);
        	var fname = $("#J_InputFile").val();
        	if(fname.endWith(".doc") || fname.endWith(".docx") || fname.endWith(".ppt") || fname.endWith(".xls") 
        		|| fname.endWith(".xlsx") || fname.endWith(".pptx") || fname.endWith(".pdf") || fname.endWith(".jpg")
        		|| fname.endWith(".png") || fname.endWith(".txt"))
	        {
	         	$("#J_ImageForm").submit();
	        }else
	        {
	        	alert("上传文件类型错误，支持doc,docx,xls,ppt,xlsx,pptx,pdf,jpg,png,txt 类型文件！");
	        }
        });
    });
 

	function UPLOAD_CALLBACK(r) 
    {
    	//alert(r);
    	if(r.startWith("http:") || r.startWith("local:"))
    	{
    		if(r.endWith("rar") || r.endWith("zip"))
    		{
    			alert("上传文件类型错误，支持doc,docx,xls,ppt,xlsx,pptx,pdf,jpg,png,txt 类型文件！");
    		}else
    		{
				$("#resumeFileName").show();
				//$("#resumeFileUpload").hide();
				$("#inputResumeFile").val(r);
    		}
		}else if(r = "1:please login!")
		{
			alert("请登录大街账户！");
		}else
		{
			alert("上传文件类型错误，支持doc,docx,xls,ppt,xlsx,pptx,pdf,jpg,png,txt 类型文件！");
		}
	};
	
	function deleteResume()
	{
		$("#resumeFileName").hide();
		//$("#resumeFileUpload").show();
		$("#inputResumeFile").val("");
		$("#J_InputFile").val("");
	}
</script>
    <div class="maincolumn2 border-bottom">
		<#-- resume upload -->
      	<div class="item-section" style="height: 180px;">
            <div class="mask-area">
            	<h3>
                    <span class="b f14">简历上传</span>
                </h3>
                <div class="item-bd">
                    <div class="info-area clearfix" id="base-info">
                    	
							<div class="upload" style="text-align:center">
								<br/>
									<iframe id="J_UploadFrame" name="J_UploadFrame" style="display: none;"></iframe>	
									<form target="J_UploadFrame" id="J_ImageForm" enctype="multipart/form-data" method="post"   
								   		action="<#if loginUser?? >http://fs1u.dajie.com/file/upload.php<#else>/file/upload</#if>" 
								   			style="display: inline;">
									    <input type="hidden" id="needToRotate" name="needToRotate" value="0"/>
									    <input type="hidden" id="J_InputType" name="type" value="file"/>
									    <input type="hidden" name="mobile" value="${invitationApply.mobile}" />
									    <#-- <input id="J_imgFormSubmit" name="submit" type="submit" value="上传文件"> 
										<input id="J_InputFile" hidefocus="true" name="file" class="upload-pic-input" type="file" />
										-->
										<#--
										<input id="J_InputFile" type="file" name="file"  hidefocus="true" 
											
										<span id="inputWrapJ_upload" style="position: absolute; height: 10px; width: 10px; overflow: hidden; z-index: 999999; left: 605px; top: 399px;">
											<input id="J_InputFile" type="file" name="file"  hidefocus="true" 
												style="position: absolute; right: 0px; top: 0px; cursor: pointer; opacity: 0;"/>
										</span>	style="position: absolute; right: 0px; top: 0px; cursor: pointer; opacity: 0;"/>
										-->
										
										<span class="i-skill-btnconfirm-s js-uploadImg dj-btn" relImgId="question-img" style="pading:0;"
											inputType="stem_image" href="javascript:void(0)">
											<span class="upload_btn">上传文件</span>
											<input id="J_InputFile" hidefocus="true" name="file" class="upload-pic-input" type="file"
												style="filter:alpha(opacity:0.01); opacity: 0.01; width: 200px; z-index: 99999; font-size:50px "/>
											
										</span>
									</form>
									
									<br/><br/>&nbsp;<font color="gray" >（可上传小于5M的doc,docx,pdf,txt,xls,xlsx文件）</font>
								<span id="resumeFileName" style="display:none">
									简历已上传  <a onclick="deleteResume()">删除</a>
								</span>
								<br/><br/>
					        </div>
							<input type='hidden' id="inputResumeFile" name='inputResumeFile' value="" />
				        
                    </div>
                </div>
		   	</div>
	  	</div>
    </div> 
    
 